package com.pay.controller;

import com.group.common.utils.R;
import com.pay.service.DetectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author lins
 * @date 2021/11/25 19:27
 */
@RestController
public class DetectionController {
    @Autowired
    DetectionService detectionService;
    @RequestMapping("detection")
    public R detection(@RequestParam MultipartFile file){

        return detectionService.detection(file);
    }
}
